package kr.jobtc.phonebook;

import android.app.Activity;
import android.content.Intent;
import android.view.MenuItem;

public class OptionMenu {
	
	public OptionMenu(Activity a, MenuItem item){
		Intent intent=null;
		switch(item.getItemId()){
		case R.id.menu_input:
			intent = new Intent(a, InputActivity.class);
			break;
		case R.id.menu_list:
			intent = new Intent(a, ListActivity.class);
			break;
		case R.id.menu_search:
			intent = new Intent(a, SearchActivity.class);
			break;
		}
		a.startActivity(intent);
	}
	
	
}
